<?php include_once("../config.php"); ?>

<?
//堆砌好数据，准备用于插入
//http://oa.enpingshi.com/api/clock_in.php?username=yuan 
 

$data['ai_mid'] = $_REQUEST['username'];
$data['ai_ip'] = $_SERVER["REMOTE_ADDR"];
$data['ai_authur'] = $_REQUEST["pc"];

$table = $dbName.'.'.$table_Prefix.'clock_in';

$sql=insert_date($table,$data);

$query = mysql_query($sql) ;

mysql_close($con);



echo $data['ai_ip'];
echo $data['ai_mid']."打卡成功";
echo $data['ai_authur']."打卡成功";

 ?>

 